package com.ethink.warehouse.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import com.ethink.framework.common.db.SuperEntity;

/**
 * 物流跟进申请表 数据库实体
 *
 * @author default
 * @date 2022-12-16
 */
@Data
@TableName("t_logistics_trace_apply_order")
public class LogisticsTraceApplyOrder extends SuperEntity {

    public static final String APPLY_ORDER_NO ="apply_order_no";

    public static final String ORDER_TYPE ="order_type";

    public static final String ORDER_STATUS ="order_status";

    public static final String SOURCE_ORDER_NO ="source_order_no";

    public static final String SOURCE_DETAIL_ORDER_NO ="source_detail_order_no";

    public static final String SOURCE_ORDER_TYPE ="source_order_type";

    public static final String SUBJECT ="subject";

    public static final String MATE_SKU ="mate_sku";

    public static final String INVENTORY_TYPE ="inventory_type";

    public static final String APPLY_IN_QTY ="apply_in_qty";

    public static final String SOURCE_SUB_WAREHOUSE_CODE ="source_sub_warehouse_code";

    public static final String SOURCE_SUB_WAREHOUSE_NAME ="source_sub_warehouse_name";

    public static final String SALE_SUB_CHANNEL ="sale_sub_channel";

    public static final String MATE_INVENTORY_ID ="mate_inventory_id";

    public static final String PURCHASE_CODE ="purchase_code";

    public static final String PRODUCE_CODE ="produce_code";

    public static final String PURCHASE_ORDER_NO ="purchase_order_no";

    public static final String PURCHASE_DETAIL_ORDER_NO ="purchase_detail_order_no";

    public static final String COST_PRICE ="cost_price";

    public static final String TARGET_SUB_WAREHOUSE_CODE ="target_sub_warehouse_code";

    public static final String TARGET_SUB_WAREHOUSE_NAME ="target_sub_warehouse_name";

    public static final String CREATE_USER_CODE ="create_user_code";

    public static final String CREATE_USER_NAME ="create_user_name";

    public static final String COMPANY_CODE ="company_code";

    public static final String COMPANY_NAME ="company_name";


    /** 申请单号 */
    private String applyOrderNo;

    /** 枚举 订单类型:1-入库(t1)|2-出库(t2) */
    private Integer orderType;

    /** 枚举 入库状态:1-申请(s1)|2-处理中(s2)|3-完成(s3)|4-取消(s4) */
    private Integer orderStatus;

    /** 原始单号 */
    private String sourceOrderNo;

    /** 原始详单号 */
    private String sourceDetailOrderNo;

    /** 原始订单类型 */
    private String sourceOrderType;

    /** 科目 */
    private String subject;

    /** 商品SKU */
    private String mateSku;

    /** 枚举 库存类型:1-正品(zp)|2-瑕疵(cc) */
    private Integer inventoryType;

    /** 申请数量 */
    private Integer applyInQty;

    /** 初始分仓编码 */
    private String sourceSubWarehouseCode;

    /** 初始分仓名称 */
    private String sourceSubWarehouseName;

    /** 渠道 */
    private String saleSubChannel;

    /** 库存ID */
    private Long mateInventoryId;

    /** 采购批次 */
    private String purchaseCode;

    /** 生产批次 */
    private String produceCode;

    /** 采购单号 */
    private String purchaseOrderNo;

    /** 采购详单号 */
    private String purchaseDetailOrderNo;

    /** 成本单价 */
    private BigDecimal costPrice;

    /** 目的分仓编码 */
    private String targetSubWarehouseCode;

    /** 目的分仓名称 */
    private String targetSubWarehouseName;

    /** 申请人账号 */
    private String createUserCode;

    /** 申请人名称 */
    private String createUserName;

    /** 相关单位编码 */
    private String companyCode;

    /** 相关单位名称 */
    private String companyName;

}
